package com.pg_chat;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

/**
 * 在springboot项目中，默认是去spring的配置文件的如果需要用到xml文件
 * ，则使用@ImportResource 来加载配置文件
 */
@SpringBootApplication
@ImportResource(locations = "classpath:applicationContext.xml")
public class PgChatApplication {

    public static void main(String[] args) {
        SpringApplication.run(PgChatApplication.class, args);
    }

}
